]> dgit.raspbian.org Git - gnome-shell.git/commit
Add check_cloexec_fds debug command
authorDaniel Drake <drake@endlessm.com>
Fri, 27 Jul 2018 16:30:22 +0000 (11:30 -0500)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 30 Jul 2018 23:11:41 +0000 (23:11 +0000)
commit49d8ff38e76e2ebcfc7fe6e3d4dca3f55f56d79a
tree2aa703704926a09519d50e6c9c46e827146caad6
parent4b522a02c31d8a3010bdfd1924a38a8f6855457a
Add check_cloexec_fds debug command

Add a debug command (to be executed manually via Alt+F2) to check
that all of gnome-shell's file descriptors have the CLOEXEC flag set.
This is important so that internal file descriptors do not get passed
to apps when they are launched.

It prints a warning message for every fd that does not have the flag set.

fdwalk() is used from the standard library if available (it is not
available in glibc), otherwise we use the same implementation as glib
has internally.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/132
config.h.meson
js/ui/runDialog.js
meson.build
src/shell-util.c
src/shell-util.h